package generator.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tem_board
 */
@TableName(value ="tem_board")
@Data
public class TemBoard {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 邮件
     */
    private String email;

    /**
     * 入职职位
     */
    private String inductionPosition;

    /**
     * 实际入职时间
     */
    private Date employmentTime;

    /**
     * 出生日期
     */
    private Date birthdayTime;

    /**
     * 性别
     */
    private String sex;

    /**
     * 婚姻状况
     */
    private String maritalStatus;

    /**
     * 民族
     */
    private String nationality;

    /**
     * 籍贯
     */
    private String nativePlace;

    /**
     * 参加工作时间
     */
    private Date workingTime;

    /**
     * 政治面貌
     */
    private String face;

    /**
     * 学历
     */
    private String educationalBackground;

    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 毕业院校
     */
    private String graduatedSchool;

    /**
     * 专业
     */
    private String specialized;

    /**
     * 姓名
     */
    private String name;

    /**
     * 关系
     */
    private String relationship;

    /**
     * 联系人电话
     */
    private String phone;

    /**
     * 候选人id
     */
    private Integer candId;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TemBoard other = (TemBoard) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getInductionPosition() == null ? other.getInductionPosition() == null : this.getInductionPosition().equals(other.getInductionPosition()))
            && (this.getEmploymentTime() == null ? other.getEmploymentTime() == null : this.getEmploymentTime().equals(other.getEmploymentTime()))
            && (this.getBirthdayTime() == null ? other.getBirthdayTime() == null : this.getBirthdayTime().equals(other.getBirthdayTime()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getMaritalStatus() == null ? other.getMaritalStatus() == null : this.getMaritalStatus().equals(other.getMaritalStatus()))
            && (this.getNationality() == null ? other.getNationality() == null : this.getNationality().equals(other.getNationality()))
            && (this.getNativePlace() == null ? other.getNativePlace() == null : this.getNativePlace().equals(other.getNativePlace()))
            && (this.getWorkingTime() == null ? other.getWorkingTime() == null : this.getWorkingTime().equals(other.getWorkingTime()))
            && (this.getFace() == null ? other.getFace() == null : this.getFace().equals(other.getFace()))
            && (this.getEducationalBackground() == null ? other.getEducationalBackground() == null : this.getEducationalBackground().equals(other.getEducationalBackground()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getGraduatedSchool() == null ? other.getGraduatedSchool() == null : this.getGraduatedSchool().equals(other.getGraduatedSchool()))
            && (this.getSpecialized() == null ? other.getSpecialized() == null : this.getSpecialized().equals(other.getSpecialized()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getRelationship() == null ? other.getRelationship() == null : this.getRelationship().equals(other.getRelationship()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getCandId() == null ? other.getCandId() == null : this.getCandId().equals(other.getCandId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getInductionPosition() == null) ? 0 : getInductionPosition().hashCode());
        result = prime * result + ((getEmploymentTime() == null) ? 0 : getEmploymentTime().hashCode());
        result = prime * result + ((getBirthdayTime() == null) ? 0 : getBirthdayTime().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getMaritalStatus() == null) ? 0 : getMaritalStatus().hashCode());
        result = prime * result + ((getNationality() == null) ? 0 : getNationality().hashCode());
        result = prime * result + ((getNativePlace() == null) ? 0 : getNativePlace().hashCode());
        result = prime * result + ((getWorkingTime() == null) ? 0 : getWorkingTime().hashCode());
        result = prime * result + ((getFace() == null) ? 0 : getFace().hashCode());
        result = prime * result + ((getEducationalBackground() == null) ? 0 : getEducationalBackground().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getGraduatedSchool() == null) ? 0 : getGraduatedSchool().hashCode());
        result = prime * result + ((getSpecialized() == null) ? 0 : getSpecialized().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getRelationship() == null) ? 0 : getRelationship().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getCandId() == null) ? 0 : getCandId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", email=").append(email);
        sb.append(", inductionPosition=").append(inductionPosition);
        sb.append(", employmentTime=").append(employmentTime);
        sb.append(", birthdayTime=").append(birthdayTime);
        sb.append(", sex=").append(sex);
        sb.append(", maritalStatus=").append(maritalStatus);
        sb.append(", nationality=").append(nationality);
        sb.append(", nativePlace=").append(nativePlace);
        sb.append(", workingTime=").append(workingTime);
        sb.append(", face=").append(face);
        sb.append(", educationalBackground=").append(educationalBackground);
        sb.append(", endTime=").append(endTime);
        sb.append(", graduatedSchool=").append(graduatedSchool);
        sb.append(", specialized=").append(specialized);
        sb.append(", name=").append(name);
        sb.append(", relationship=").append(relationship);
        sb.append(", phone=").append(phone);
        sb.append(", candId=").append(candId);
        sb.append("]");
        return sb.toString();
    }
}